﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace SienSchoofsProject.Models
{
    public class ContactModel
    {
        [Required]
        [Display(Name ="Name", ResourceType = typeof(Resources.Resources))]
        public string Naam { get; set; }

        [Required]
        [DataType(DataType.EmailAddress)]
        [EmailAddress]
        [Display(Name ="EmailAddress", ResourceType = typeof(Resources.Resources))]
        public string Email { get; set; }

        [Required]
        [StringLength(254, ErrorMessageResourceType = typeof(Resources.Resources), ErrorMessageResourceName = "ContactSubjectMaxLength")]
        [Display(Name ="Subject", ResourceType = typeof(Resources.Resources))]
        public string Titel { get; set; }

        [Required]
        [StringLength(1024, ErrorMessageResourceType = typeof(Resources.Resources), ErrorMessageResourceName = "ContactMessageMaxLength")]
        [Display(Name ="Message", ResourceType = typeof(Resources.Resources))]
        public string Bericht { get; set; }
    }
}